package cn.accp.mvc.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.accp.mvc.dao.StreetDao;
import cn.accp.mvc.entity.Street;
import cn.accp.mvc.service.StreetService;
@Service("streetService")
public class StreetServiceImpl implements StreetService {
	@Autowired
	private StreetDao streetDao;
	public void setStreetDao(StreetDao streetDao) {
		this.streetDao = streetDao;
	}

	@Override
	public List<Street> getAllStreet() {
		return streetDao.getAllStreet();
	}

	@Override
	public Street getStreet(Short id) {
		return streetDao.getStreet(id);
	}
	
	
}
